# from selenium import webdriver
# from selenium.webdriver.common.by import By
# #
# # driver = webdriver.Chrome()
# # driver.get('https://www.baidu.com')
# # kw = driver.find_element(By.XPATH, "//input[@id= 'kw']")
# # print(kw.get_attribute('outerHTML'))
# # driver.quit()
# driver = webdriver.Chrome()
# driver.get()
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

# deiver = webdriver.Chrome()
# deiver.get('https://www.baidu.com')
# kw = deiver.find_element(By.XPATH, "//input[@value='百度一下']")
# print(kw.get_attribute('outerHTML'))
# time.sleep(2)
# deiver.quit()
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')

print(driver.find_element(By.XPATH, "//form/input").get_attribute('outerHTML'))
driver.quit()